export type CheckModel = {
  totalCount: number //list个数
  list: any //数据
  children: any
}

const api: ApiConfig = {
  // 考勤规则列表
  rulesList: {
    method: 'GET',
    url: '/oa/workAttendanceRule/list'
  },
  // 新增考勤规则
  rulesSave: {
    method: 'POST',
    url: '/oa/workAttendanceRule/save'
  },
  // 修改考勤规则
  rulesUpdate: {
    method: 'POST',
    url: '/oa/workAttendanceRule/update'
  },
  // 生成考勤排班
  workSave: {
    method: 'POST',
    url: '/oa/workAttendanceRule/createWorkDate'
  },
  // 删除考勤规则
  rulesDelete: {
    method: 'POST',
    url: '/oa/workAttendanceRule/delete'
  },
  // 考勤规则详情
  rulesInfo: {
    method: 'GET',
    url: '/oa/workAttendanceRule/info/:id'
  },
  // 考勤排版列表
  workList: {
    method: 'GET',
    url: '/oa/workAttendanceRule/getWorkAttendanceUserRuleList'
  },
  // 修改考勤排班
  workUpdate: {
    method: 'POST',
    url: '/oa/workAttendanceRule/updateWorkAttendanceUserRuleMonthInfo'
  },
  // 考勤排版详情
  workInfo: {
    method: 'GET',
    url: '/oa/workAttendanceRule/getWorkAttendanceUserRuleMonthInfo'
  },
  // 删除考勤规则
  workDelete: {
    method: 'POST',
    url: '/oa/workAttendanceRule/deleteWorkAttendanceUserRule'
  },
  // 获取部门
  depList: {
    method: 'GET',
    url: '/sys/sysInstitution/getTree'
  },
  // 获取提示状态
  checkWorkAttendanceRule: {
    method: 'GET',
    url: '/oa/workAttendanceRule/ckeck/:id'
  }
}

export default api
